﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for AdminBus
/// </summary>
public class AdminBus
{
    AdminDAL adminDal = new AdminDAL();
	public AdminBus()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public DataTable GetEmployeeByUsernameAndPass(string username, string pass)
    {
        return adminDal.GetAdminByUserNameAndPass(username, pass);
    }


    public bool IsLogin(string username, string password)
    {
        DataTable dt = new DataTable();

        dt = GetEmployeeByUsernameAndPass(username, password);

        if (dt.Rows.Count > 0)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}